import request from '@/utils/request'

//获取sku列表的接口
//  GET   /admin/product/list/{page}/{limit}
export const reqSkuList = (page,limit) => request({url:`/admin/product/list/${page}/${limit}`,method:'get'})

//sku商品上架的接口
//  GET   /admin/product/onSale/{skuId}
export const reqSkuOnSale = (skuId) => request({url:`/admin/product/onSale/${skuId}`,method:'get'})

//sku商品下架的接口
//  GET   /admin/product/cancelSale/{skuId}
export const reqSkuCancelSale = (skuId) => request({url:`/admin/product/cancelSale/${skuId}`,method:'get'})

//获取sku详情的接口
//  GET   /admin/product/getSkuById/{skuId}
export const reqSkuDetailById = (skuId) => request({url:`/admin/product/getSkuById/${skuId}`,method:'get'})
